<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js"></script>
		<style>
			/* 
			.fade-enter-active, .fade-leave-active {
				transition: opacity .5s;
			}
			.fade-enter, .fade-leave-to {
				opacity: 0;
			} */
			
			.fade-enter-active {
			  transition: all .3s ease;
			}
			.fade-leave-active {
			  transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
			}
			.fade-enter, .fade-leave-to
			/* .fade-leave-active for below version 2.1.8 */ {
			  transform: translateX(10px);
			  opacity: 0;
			}
		</style>
	</head>
	<body>
		
		<div id="app">
			<button v-on:click="show=!show">确定</button>
			<transition name="fade">
				<p v-if="show">显示信息</p>
			</transition>
			
		</div>
		
	</body>
	<script>
		var app=new Vue({
			el:'#app',
			data:{
				show:true
			}
		})
	</script>
</html>
